<?php

$include_path=ini_get('include_path').PATH_SEPARATOR.'.'.DIRECTORY_SEPARATOR.'includes'.PATH_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'includes'.PATH_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'includes'.PATH_SEPARATOR.'.'.DIRECTORY_SEPARATOR.'includes'.DIRECTORY_SEPARATOR.'php'.DIRECTORY_SEPARATOR.'smarty';
set_include_path($include_path);

// Main config

define('ROOTPATH', 'http://'.$_SERVER['HTTP_HOST'].'', true);
define('TITRESITE', 'Base de données microcèbe', true);
define('PHP_ROOTPATH', realpath(dirname(__FILE__).DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR), true);
define('DOMAIN_NAME', "localhost");
$queries = 0;

// Database config
define('HOST', 'localhost');
define('DBNAME', 'mmdn');
define('DB_PORT', 5432);

if (file_exists("/var/production")) {
	//production credentials
	define('USER', 'corinne');
	define('PASSWORD', 'U710');
} else {
	define('USER', 'postgres');
	define('PASSWORD', 'oracle');
}




// usual paths
define('CSS_ROOTPATH', ROOTPATH."/public/stylesheet/");
define('JS_ROOTPATH', ROOTPATH."/public/javascript/");

// perl
define('PERL_EXEC_FILE_PATH', '/usr/bin/perl');
//define('PERL_EXEC_FILE_PATH', 'C:\Strawberry\perl\bin\perl.exe');
define('PERL_SCRIPTS_PATH', PHP_ROOTPATH.DIRECTORY_SEPARATOR.'scripts'.DIRECTORY_SEPARATOR);

// mail informations
define('SENDER_EMAIL',"mimbank@univ-montp2.fr");
define('SENDER_NAME',"mimbank");
define('SENDER_PASSWORD',"MIMBankU710CL");
define('SMTP_HOST',"smtp.univ-montp2.fr");
define('SMTP_PORT',25);
define('REPLY_TO_EMAIL',SENDER_EMAIL);
define('REPLY_TO_NAME',SENDER_NAME);
define('ADMINISTATOR_EMAIL',SENDER_EMAIL);
define('ADMINISTATOR_NAME',SENDER_NAME);

// dump 
define('PGDUMP_EXEC_FILE_PATH',"/usr/bin/pg_dump");
